package com.ruoyi.base.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 轮播图对象 carousels
 * 
 * @author 刘大理
 * @date 2025-06-24
 */
//public class Carousels extends BaseEntity
public class Carousels
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 轮播图名称 */
    @Excel(name = "轮播图名称")
    private String carouselName;

    /** 轮播图地址 */
    @Excel(name = "轮播图地址")
    private String imageUrl;

    /** 是否启用 0 是 1否 */
    @Excel(name = "是否启用 0 是 1否")
    private Long isEnabled;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 是否删除 0 是 1否 */
    @Excel(name = "是否删除 0 是 1否")
    private Long isDeleted;

    /** 跳转表单URL */
    @Excel(name = "跳转表单URL")
    private String redirectUrl;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCarouselName(String carouselName) 
    {
        this.carouselName = carouselName;
    }

    public String getCarouselName() 
    {
        return carouselName;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setIsEnabled(Long isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public Long getIsEnabled() 
    {
        return isEnabled;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    public void setRedirectUrl(String redirectUrl) 
    {
        this.redirectUrl = redirectUrl;
    }

    public String getRedirectUrl() 
    {
        return redirectUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carouselName", getCarouselName())
            .append("imageUrl", getImageUrl())
            .append("isEnabled", getIsEnabled())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("isDeleted", getIsDeleted())
            .append("redirectUrl", getRedirectUrl())
            .toString();
    }
}
